﻿<Grid x:Name="PART_Grid" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       
      HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5">
	  <!--Width="Auto" Height="Auto" MinHeight="450" MinWidth="250" >-->

    <!--<Grid.RenderTransform>
        <ScaleTransform x:Name="_ScaleTransform" ScaleX="1" ScaleY="1" />
    </Grid.RenderTransform>-->        
        
    <Grid.Background>
        <SolidColorBrush Opacity="0.0" /> <!--Behövs för att OnMouseOver ska fungera -->
    </Grid.Background>

    <Grid.Resources>
        <Storyboard x:Name="PART_Storyboard">
            <DoubleAnimation x:Name="PART_DoubleAnimationWidth" Storyboard.TargetName="B0" Storyboard.TargetProperty="Width" Duration="0:0:0.4" />
            <DoubleAnimation x:Name="PART_DoubleAnimationHeight" Storyboard.TargetName="B0" Storyboard.TargetProperty="Height" Duration="0:0:0.4" />
        </Storyboard>
    </Grid.Resources>	
    
    <Grid VerticalAlignment="Center" HorizontalAlignment="Center" RenderTransformOrigin="0.5,0.5">
        <Grid.RenderTransform>
            <ScaleTransform x:Name="_ScaleTransform" ScaleX="1" ScaleY="1" />
        </Grid.RenderTransform>

        <Border x:Name="B0" CornerRadius="4" BorderThickness="0" BorderBrush="Black" Margin="4" Width="90" Height="90" >

            <Border.Background>
                <SolidColorBrush Color="#FF2B2B2B" Opacity="0.0" />
            </Border.Background>
            <Grid>
                <Image x:Name="PART_Image" Margin="4" />
            </Grid>
        </Border>
    </Grid>

    <Grid Margin="0,375,0,0" VerticalAlignment="Top" Height="500">
    <StackPanel x:Name="PART_StackPanel">     

        <Border x:Name="B1" CornerRadius="4" BorderThickness="1" BorderBrush="Black" Margin="4" Visibility="Collapsed">
            <Border.Background>
                <SolidColorBrush Color="#FF2B2B2B" />
            </Border.Background>
            <StackPanel>
                <TextBlock x:Name="PART_Subtitle" Text="Reports->General"  FontSize="12" Margin="8,4,8,4" FontWeight="Bold" Foreground="#FFCDCDCD" HorizontalAlignment="Center" />
                <TextBlock x:Name="PART_Title" Text="Title"  FontSize="13.3" Margin="8,4,8,4" FontWeight="Bold" HorizontalAlignment="Center" Foreground="White" />
            </StackPanel>
        </Border>

        <Border x:Name="B2" CornerRadius="4" BorderThickness="1" BorderBrush="Black" Margin="4" Visibility="Collapsed" >
            <Border.Background>
                <SolidColorBrush Color="#FF2B2B2B" />
            </Border.Background>    
	            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" >            
	                <Button x:Name="PART_Openbutton" Content="Open" FontSize="12" Width="100" Margin="4" Style="{StaticResource ButtonStyle}" />
	                <Button x:Name="PART_Selectbutton" Content="Select" FontSize="12" Width="100" Margin="4" Style="{StaticResource ButtonStyle}" Visibility="Collapsed" />
					<Button x:Name="PART_Morebutton" Content="Details..." FontSize="12" Width="100" Margin="4" Style="{StaticResource ButtonStyle}" />
	            </StackPanel>
        </Border>	
		
		 <Border x:Name="B3" CornerRadius="4" BorderThickness="1" BorderBrush="Black" Margin="4" Visibility="Collapsed">
            <Border.Background>
                <SolidColorBrush Color="#FF2B2B2B" />
            </Border.Background>			
			<StackPanel >
            	<ComboBox x:Name="PART_Views" Height="30" Margin="30,10,34,0" FontSize="12" Style="{StaticResource ComboBoxStyle}" />
                <ListBox x:Name="PART_Details" Margin="8,10" Width="300" Height="150" FontSize="12" Style="{StaticResource ListBoxStyle}" >
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding fieldName}" FontWeight="Bold" Width="100" Margin="0,0,5,0" />
								<TextBlock Text="{Binding fieldValue}" />
                            </StackPanel>
                        </DataTemplate>                        
                    </ListBox.ItemTemplate>
                </ListBox>
            </StackPanel>
        </Border>					              		        

    </StackPanel>
        </Grid>

</Grid>